<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
<script>
    // var a = 1;
    // alert('hello');
    // function sortNumber(a,b){
    //     return b-a
    // }
    // var arr1 = [11, 100, 22, 55, 33, 44]
    // arr1.sort(sortNumber)
    // console.log(arr1)

    // var a = {"name": "Alex", "age": 84};
    // for (var i in a){
    //   console.log(i, a[i]);
    // }
    var err_type = 'info'
    switch(err_type) {
        case 'warining':
            console.log('警告');
            break;
        case 'error':
            console.log('错误');
            break;
        default:
            console.log('没错')
    }

</script>
</body>
</html>

